package com.google.code.msgbooster.core;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

import com.google.code.msgbooster.core.Meta.TYPE;

public final class Config {

	private static Configuration CONFIG;

	static {
		try {
			CONFIG = new PropertiesConfiguration("msgbooster.properties");
		} catch (ConfigurationException e) {
			Meta.ERROR(TYPE.CORE, Config.class, e);
		}
	}

	public static String getProperty(String key) {
		return CONFIG.getString(key);
	}

}
